﻿using PowerBooking.RSE.Contract.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace PowerBooking.RSE.Poco
{
    /// <summary>
    /// 餐厅表映射
    /// </summary>
    [Table("PowerBooking.RSE.Restaurant")]
    public class RestaurantPoco
    {
        /// <summary>
        /// 主键自增
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int RestaurantID { get; set; }

        /// <summary>
        /// 城市ID
        /// </summary>
        [Required]
        public int CityID { get; set; }

        /// <summary>
        /// 筛选项ID
        /// </summary>
        [Required]
        public int FilterID { get; set; }

        /// <summary>
        /// 餐厅名称
        /// </summary>
        [Required]
        [StringLength(64)]
        public string Name { get; set; }

        /// <summary>
        /// 餐厅Url
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Url { get; set; }

        /// <summary>
        /// 最小人均
        /// </summary>
        [Required]
        public int MinPerCapita { get; set; }

        /// <summary>
        /// 最大人均
        /// </summary>
        [Required]
        public int MaxPerCapita { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [Required]
        [StringLength(64)]
        public string Address { get; set; }

        /// <summary>
        /// 口味
        /// </summary>
        [Required]
        public double Taste { get; set; }

        /// <summary>
        /// 环境
        /// </summary>
        [Required]
        public double Environment { get; set; }

        /// <summary>
        /// 服务
        /// </summary>
        [Required]
        public double Service { get; set; }

        /// <summary>
        /// 近期订单
        /// </summary>
        [Required]
        public int RecentOrders { get; set; }

        /// <summary>
        /// 评论
        /// </summary>
        [Required]
        public int Reviews { get; set; }

        /// <summary>
        /// 喜欢率
        /// </summary>
        [Required]
        public int PeopleLikeRate { get; set; }

        /// <summary>
        /// 总体印象
        /// </summary>
        [Required]
        public double Impress { get; set; }

        /// <summary>
        /// 餐厅类型
        /// </summary>
        [Required]
        public RestaurantTypeEnum Type { get; set; }

        /// <summary>
        /// 菜系标签
        /// </summary>
        [Required]
        [StringLength(256)]
        public string CuisineTags { get; set; }

        /// <summary>
        /// 地标标签
        /// </summary>
        [Required]
        [StringLength(256)]
        public string RegionTags { get; set; }
    }
}
